dojo.provide("ctrlspace.ui.menus.MenuItem");
dojo.declare("ctrlspace.ui.menus.MenuItem", ctrlspace.core.Plugin, {
	// Attributes
	id: "ctrlspace.ui.menus.DefaultMenuItem",
	location: "",
	position: "default",
	label: "DefaultMenuItem",
	command: null,

	// Constructor
	constructor: function(properties) {
		dojo.safeMixin(this, properties);
		
		var targetMenu = IDE.UI.getMenuBar().getMenu(this.location);
		if (targetMenu == null) {
			console.error(menuId + ' does not exist!');
		}

		targetMenu.extend(this.id, this);
	}
});